package com.tool.imp.ia;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.tool.imp.BillVO;
import com.tool.imp.EntryVO;
import com.tool.imp.FieldVO;
import com.tool.imp.ap.ApBillVO;

public class PurInBillEntryVO extends EntryVO{
	private static Map<String, FieldVO> fieldMap;

	public String getTableName() {
		return "ia_bill_b";
	}
	
	public String getPKField() {
		return "cbill_bid";
	}
	
	public Map<String, FieldVO> getFieldMap() {
		return fieldMap;
	}
	
	static {
		fieldMap = new HashMap<String, FieldVO>();

		//注册数据字段
		//时间戳
		fieldMap.put("ts", new FieldVO("ts", String.class, "ts"));
		//批次号
		fieldMap.put("vbatch", new FieldVO("vbatch", String.class, "vbatch"));
		//计价方式编码,默认为"3"
		fieldMap.put("fpricemodeflag", new FieldVO("fpricemodeflag", Integer.class, "fpricemodeflag"));
		//行号,默认从0开始
		fieldMap.put("irownumber", new FieldVO("irownumber", Integer.class, "irownumber"));
		//分录ID
		fieldMap.put("cbill_bid", new FieldVO("cbill_bid", String.class, "cbill_bid"));
		//单据ID
		fieldMap.put("cbillid", new FieldVO("cbillid", String.class, "cbillid"));
		//公司
		fieldMap.put("pk_corp", new FieldVO("pk_corp", String.class, "pk_corp"));
		//库存组织
		fieldMap.put("crdcenterid", new FieldVO("crdcenterid", String.class, "crdcenterid"));
		//单据号
		fieldMap.put("vbillcode", new FieldVO("vbillcode", String.class, "vbillcode"));
		//单据类型
		fieldMap.put("cbilltypecode", new FieldVO("cbilltypecode", String.class, "cbilltypecode"));
		//存货ID
		fieldMap.put("cinventoryid", new FieldVO("cinventoryid", String.class, "cinventoryid"));
        //存货基本标识
		fieldMap.put("cinvbasid", new FieldVO("cinvbasid", String.class, "cinvbasid"));
		//供应商基本档案标识
		fieldMap.put("cvendorbasid", new FieldVO("cvendorbasid", String.class, "cvendorbasid"));
		//是否批量核算,默认为"N"
		fieldMap.put("bauditbatchflag", new FieldVO("bauditbatchflag", String.class, "bauditbatchflag"));
		//是否赠品,默认为"N"
		fieldMap.put("blargessflag", new FieldVO("blargessflag", String.class, "blargessflag"));
		//业务日期
		fieldMap.put("dbizdate", new FieldVO("dbizdate", String.class, "dbizdate"));
		//供应商ID,与客商基本档案字段关联
		fieldMap.put("cvendorid", new FieldVO("cvendorid", String.class, "cvendorid"));
		//数量
		fieldMap.put("nnumber", new FieldVO("nnumber", BigDecimal.class, "nnumber"));
		//单价
		fieldMap.put("nprice", new FieldVO("nprice", BigDecimal.class, "nprice"));
		//金额
		fieldMap.put("nmoney", new FieldVO("nmoney", BigDecimal.class, "nmoney"));
		//计划金额
		fieldMap.put("nplanedmny", new FieldVO("nplanedmny", BigDecimal.class, "nplanedmny"));
		//計劃金額
		fieldMap.put("nplanedprice", new FieldVO("nplanedprice", BigDecimal.class, "nplanedprice"));
/*      //审批人标识
		fieldMap.put("cauditorid", new FieldVO("cauditorid", String.class, "cauditorid"));
		//审批日期
		fieldMap.put("dauditdate", new FieldVO("dauditdate", Date.class, "dauditdate"));
		//IC(库存单据)号
		fieldMap.put("cicbillcode", new FieldVO("cicbillcode", String.class, "cicbillcode"));
		//库存单据ID
		fieldMap.put("cicbillid", new FieldVO("cicbillid", String.class, "cicbillid"));
		//库存单据分录ID
		fieldMap.put("cicitemid", new FieldVO("cicitemid", String.class, "cicitemid"));
		//出库是否调整标志,默认为"N"
		fieldMap.put("foutadjustableflag", new FieldVO("foutadjustableflag", String.class, "foutadjustableflag"));
		//是否调整了分录,默认为"N"
		fieldMap.put("badjusteditemflag", new FieldVO("badjusteditemflag", String.class, "badjusteditemflag"));
		//是否进项税转出,默认为"N"
		fieldMap.put("btransferincometax", new FieldVO("btransferincometax", String.class, "btransferincometax"));
        //是否已生成实时凭证,默认为"N"
		fieldMap.put("brtvouchflag", new FieldVO("brtvouchflag", String.class, "brtvouchflag"));	
        //审批序号,默认为-1
		fieldMap.put("iauditsequence", new FieldVO("iauditsequence", Integer.class, "iauditsequence"));
		//模拟成本
		fieldMap.put("nsimulatemny", new FieldVO("nsimulatemny", BigDecimal.class, "nsimulatemny"));
		//调整前单价
		fieldMap.put("noriginalprice", new FieldVO("noriginalprice", BigDecimal.class, "noriginalprice"));		
		//累计发出数量
		fieldMap.put("nsettledsendnum", new FieldVO("nsettledsendnum", BigDecimal.class, "nsettledsendnum"));
		//累计冲回数量
		fieldMap.put("nsettledretractnum", new FieldVO("nsettledretractnum", BigDecimal.class, "nsettledretractnum"));
		//提取比例
		fieldMap.put("ddrawrate", new FieldVO("ddrawrate", BigDecimal.class, "ddrawrate"));
		//累计提取金额
		fieldMap.put("ndrawsummny", new FieldVO("ndrawsummny", BigDecimal.class, "ndrawsummny"));
		//收入差异
		fieldMap.put("ninvarymny", new FieldVO("ninvarymny", BigDecimal.class, "ninvarymny"));
		//发出差异
		fieldMap.put("noutvarymny", new FieldVO("noutvarymny", BigDecimal.class, "noutvarymny"));
		//成本对象
		fieldMap.put("vbomcode", new FieldVO("vbomcode", BigDecimal.class, "vbomcode"));
		//生产批号
		fieldMap.put("vproducebatch", new FieldVO("vproducebatch", BigDecimal.class, "vproducebatch"));
		//辅计量单位
		fieldMap.put("castunitid", new FieldVO("castunitid", String.class, "castunitid"));
		//辅单位数量
		fieldMap.put("nassistnum", new FieldVO("nassistnum", BigDecimal.class, "nassistnum"));
        //进项税率,与"是否进项税转出"字段关联
		fieldMap.put("nincometax", new FieldVO("nincometax", BigDecimal.class, "nincometax"));
        //退税率
		fieldMap.put("nexpaybacktax", new FieldVO("nexpaybacktax", BigDecimal.class, "nexpaybacktax"));
		//工序
		fieldMap.put("cwp", new FieldVO("cwp", String.class, "cwp"));
		//销售出库单标识
		fieldMap.put("csaleadviceid", new FieldVO("csaleadviceid", String.class, "csaleadviceid"));
		//销售出库单分录标识
		fieldMap.put("ccsaleadviceitemid", new FieldVO("ccsaleadviceitemid", String.class, "ccsaleadviceitemid"));
		//对应入库单分录标识
		fieldMap.put("cinbillitemid", new FieldVO("cinbillitemid", String.class, "cinbillitemid"));
        //凭证ID,与"是否已生成实时凭证"字段关联
		fieldMap.put("cvoucherid", new FieldVO("cvoucherid", String.class, "cvoucherid"));
		//固定资产附属设备ID
		fieldMap.put("cfacardid", new FieldVO("cfacardid", String.class, "cfacardid"));
		//合理损耗金额
		fieldMap.put("nreasonalwastmny", new FieldVO("nreasonalwastmny", BigDecimal.class, "nreasonalwastmny"));
		//合理耗损数量
		fieldMap.put("nreasonalwastnum", new FieldVO("nreasonalwastnum", BigDecimal.class, "nreasonalwastnum"));
		//合理耗损单价
		fieldMap.put("nreasonalwastprice", new FieldVO("nreasonalwastprice", BigDecimal.class, "nreasonalwastprice"));	*/
	}

	//计划金额
	BigDecimal nplanedmny;
	//计划单价
	BigDecimal nplanedprice;
	//金额
	BigDecimal nmoney;
	//单价
	BigDecimal nprice;
	//数量
	BigDecimal nnumber;
	//供应商
	String cvendorid;
	//批次号
	String vbatch;
	//存货ID 
	String cinventoryid;
	//计价方式编码
	int fpricemodeflag;
	//单据类型
	String cbilltypecode;
	//单据号
	String vbillcode;
	//公司主键
	String pk_corp;
	//单据标识
	String cbillid;
	//分录标识
	String cbill_bid;
	//时间戳
	String ts;
	//供应商基本档案标识
	String cvendorbasid;
	//库存组织标识
	String crdcenterid;
	//存货基本标识
	String cinvbasid;
	//辅计量数量
	BigDecimal nassistnum;
	//辅计量单位
	String castunitid;
	//行号
	int irownumber;
	//业务日期
	String dbizdate;
	//是否赠品
	String blargessflag;
	//是否批次核算
	String bauditbatchflag;

	public BigDecimal getNplanedmny() {
		return getBigDecimal("nplanedmny");
	}

	public void setNplanedmny(BigDecimal nplanedmny) {
		setBigDecimal("nplanedmny",nplanedmny);
	}

	public BigDecimal getNplanedprice() {
		return getBigDecimal("nplanedprice");
	}

	public void setNplanedprice(BigDecimal nplanedprice) {
		setBigDecimal("nplanedprice",nplanedprice);
	}

	public BigDecimal getNmoney() {
		return getBigDecimal("nmoney");
	}

	public void setNmoney(BigDecimal nmoney) {
		this.nmoney = nmoney;
		setBigDecimal("nmoney",nmoney);
	}

	public BigDecimal getNprice() {
		return getBigDecimal("nprice");
	}

	public void setNprice(BigDecimal nprice) {
		setBigDecimal("nprice",nprice);
	}

	public BigDecimal getNnumber() {
		return getBigDecimal("nnumber");
	}

	public void setNnumber(BigDecimal nnumber) {
		setBigDecimal("nnumber",nnumber);
	}

	public String getCvendorid() {
		return getString("cvendorid");
	}

	public void setCvendorid(String cvendorid) {
		setString("cvendorid",cvendorid);
	}

	public String getVbatch() {
		return getString("vbatch");
	}

	public void setVbatch(String vbatch) {
		setString("vbatch",vbatch);
	}

	public String getCinventoryid() {
		return getString("cinventoryid");
	}

	public void setCinventoryid(String cinventoryid) {
		setString("cinventoryid",cinventoryid);
	}

	public int getFpricemodeflag() {
		return getInteger("fpricemodeflag");
	}

	public void setFpricemodeflag(int fpricemodeflag) {
		setInteger("fpricemodeflag",fpricemodeflag);
	}

	public String getCbilltypecode() {
		return getString("cbilltypecode");
	}

	public void setCbilltypecode(String cbilltypecode) {
		setString("cbilltypecode",cbilltypecode);
	}

	public String getVbillcode() {
		return getString("vbillcode");
	}

	public void setVbillcode(String vbillcode) {
		setString("vbillcode",vbillcode);
	}

	public String getPk_corp() {
		return getString("pk_corp");
	}

	public void setPk_corp(String pk_corp) {
		setString("pk_corp",pk_corp);
	}

	public String getCbillid() {
		return getString("cbillid");
	}

	public void setCbillid(String cbillid) {
		setString("cbillid",cbillid);
	}

	public String getCbill_bid() {
		return getString("cbill_bid");
	}

	public void setCbill_bid(String cbill_bid) {
		setString("cbill_bid", cbill_bid);
	}

	public String getTs() {
		return getString("ts");
	}

	public void setTs(String ts) {
		setString("ts", ts);
	}

	public String getCvendorbasid() {
		return getString("cvendorbasid");
	}

	public void setCvendorbasid(String cvendorbasid) {
		setString("cvendorbasid", cvendorbasid);
	}

	public String getCrdcenterid() {
		return getString("crdcenterid");
	}

	public void setCrdcenterid(String crdcenterid) {
		setString("crdcenterid", crdcenterid);
	}

	public String getCinvbasid() {
		return getString("cinvbasid");
		
	}

	public void setCinvbasid(String cinvbasid) {
		setString("cinvbasid", cinvbasid);
	}

	public BigDecimal getNassistnum() {
		return getBigDecimal("nassistnum");
	}

	public void setNassistnum(BigDecimal nassistnum) {
		setBigDecimal("nassistnum", nassistnum);
	}

	public String getCastunitid() {
		return getString("castunitid");
		
	}

	public void setCastunitid(String castunitid) {
		setString("castunitid", castunitid);
	}

	public int getIrownumber() {
		return getInteger("irownumber");
	}

	public void setIrownumber(int irownumber) {
		setInteger("irownumber", irownumber);
	}

	public String getDbizdate() {
		return getString("dbizdate");
		
	}

	public void setDbizdate(String dbizdate) {
		setString("dbizdate",dbizdate);
		
	}

	public String getBlargessflag() {
		return getString("blargessflag");
	}

	public void setBlargessflag(String blargessflag) {
		setString("blargessflag",blargessflag);
	}

	public String getBauditbatchflag() {
		return getString("bauditbatchflag");
	}

	public void setBauditbatchflag(String bauditbatchflag) {
		setString("bauditbatchflag",bauditbatchflag);
	}
	
	//计算关系单据子表id
	//String ccalcbillitemid;
	//计算关系单据主表id
	//String ccalcbillid; 
	//计算关系的单据类型
	//String vcalcbilltype; 
	//计算关系的业务分类
	//int fcalcbizflag;
	//合理损耗金额
	//BigDecimal nreasonalwastmny;
	//合理损耗数量
	//BigDecimal nreasonalwastnum;	
	//合理损耗单价
	//BigDecimal nreasonalwastprice;
	//销售结算明细标识
	//String csaleaudititemid;
	//固定资产附属设备ID
	//String cfacardid;
	//会计凭证ID
	//String cvoucherid;
	//是否已生成实时凭证
	//String brtvouchflag;
	//IC子表ID
	//String cicitemid;
	//IC主表ID
	//String cicbillid;
	//工序
	//String cwp;
	//退税率
	//BigDecimal nexpaybacktax;
	//IC单据号
	//String cicbillcode;
	//调整数量
	//BigDecimal nadjustnum;
	//进项税率
	//BigDecimal nincometax;
	//是否进项税转出
	//String btransferincometax;
	//成本对象
	//String vbomcode;
	//是否调整了分录
	//String badjusteditemflag;
	//出库是否调整标志
	//String foutadjustableflag;
	//发出差异
	//BigDecimal noutvarymny;
	//收入差异
	//BigDecimal ninvarymny;
	//累计提取金额
	//BigDecimal ndrawsummny;
	//提取比例
	//BigDecimal ddrawrate;
	//累计冲回数量
	//BigDecimal nsettledretractnum;
	//累计发出数量
	//BigDecimal nsettledsendnum;
	//对应入库单分录标识
	//String cinbillitemid;
	//模拟成本
	//BigDecimal nsimulatemny;
	//调整前单价
	//BigDecimal noriginalprice;
	//销售系统出库单分录标识
	//String ccsaleadviceitemid;
	//销售系统出库单标识
	//String csaleadviceid;

	//badjusteditemflag/fdatagetmodelflag/folddatagetmodelflag/foutadjustableflg/iauditsequence/
}
